require 'rubygems'

module ProductsHelper
  def format_desc(desc)
    if desc && !desc.blank?
    doc = Hpricot(desc)
    return truncate(doc.inner_text,200)
    else
      ""
    end
  end
end
